package com.decorator.csl;

/**
 * Created by siyuzhiyue on 2017/6/14.
 */
public class ManagerB extends Manager {
    Person person;

    public ManagerB(Person person){
        super();
        this.person = person;
    }

    @Override
    public void doCoding() {
        person.doCoding();
        doLaterWork();

    }

    public void doLaterWork(){
        System.out.println("managerB");
    }
}
